<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Awesome-pyecharts</title>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>

</head>
<body>
    <div id="9bf5bf868ce043b895b07bf44ac3d72c" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_9bf5bf868ce043b895b07bf44ac3d72c = echarts.init(
            document.getElementById('9bf5bf868ce043b895b07bf44ac3d72c'), 'white', {renderer: 'canvas'});
        var option_9bf5bf868ce043b895b07bf44ac3d72c = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "sankey",
            "name": "sankey",
            "data": [
                {
                    "name": "category1"
                },
                {
                    "name": "category2"
                },
                {
                    "name": "category3"
                },
                {
                    "name": "category4"
                },
                {
                    "name": "category5"
                },
                {
                    "name": "category6"
                }
            ],
            "links": [
                {
                    "source": "category1",
                    "target": "category2",
                    "value": 10
                },
                {
                    "source": "category2",
                    "target": "category3",
                    "value": 15
                },
                {
                    "source": "category3",
                    "target": "category4",
                    "value": 20
                },
                {
                    "source": "category5",
                    "target": "category6",
                    "value": 25
                }
            ],
            "left": "5%",
            "top": "5%",
            "right": "20%",
            "bottom": "5%",
            "nodeWidth": 20,
            "nodeGap": 8,
            "nodeAlign": "justify",
            "layoutIteration": 32,
            "orient": "horizontal",
            "draggable": true,
            "focusNodeAdjacency": false,
            "label": {
                "show": true,
                "position": "right",
                "margin": 8
            },
            "lineStyle": {
                "show": true,
                "width": 1,
                "opacity": 0.2,
                "curveness": 0.5,
                "type": "solid",
                "color": "source"
            }
        }
    ],
    "legend": [
        {
            "data": [
                "sankey"
            ],
            "selected": {
                "sankey": true
            },
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0
    },
    "title": [
        {
            "text": "Sankey-\u57fa\u672c\u793a\u4f8b",
            "padding": 5,
            "itemGap": 10
        }
    ]
};
        chart_9bf5bf868ce043b895b07bf44ac3d72c.setOption(option_9bf5bf868ce043b895b07bf44ac3d72c);
    </script>
</body>
</html>
